// lib/wagmiClient.ts
import { createConfig, http } from 'wagmi';
import { mainnet, sepolia } from 'wagmi/chains';
import { injected } from 'wagmi/connectors';
import { hardhatLocalhost } from '../chains';

export const config = createConfig({
  chains: [mainnet, sepolia,hardhatLocalhost],
  connectors: [injected()],
  transports: {
    [mainnet.id]: http(),
    [sepolia.id]: http(),
    [hardhatLocalhost.id]: http('http://127.0.0.1:8545'),
  },
  // ssr: true,
});
